{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 高德地图API"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 地理编码、逆地理编码、步行路径规划\n",
    "* 路径规划\n",
    "* 搜索POI\n",
    "* IP定位\n",
    "* 静态地图        \n",
    "* 天气查询\n",
    "* ip定位\n",
    "* 坐标转换 \n",
    "* 输入提示\n",
    "* 交通态势\n",
    "* 设计应用"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 1、获取地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geocode(address:str,city=None,batch=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params = {\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'address':\"广东省中山市古镇镇海洲红庙振兴路22号\",\n",
    "        'city':\"中山\",\n",
    "        'batch':True,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省中山市振兴路|22号',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'city': '中山市',\n",
       "   'district': [],\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '442000',\n",
       "   'street': '振兴路',\n",
       "   'number': '22号',\n",
       "   'location': '113.182740,22.663524',\n",
       "   'level': '门牌号'}]}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "家 = geocode('广东省中山市古镇镇海洲红庙振兴路22号')\n",
    "家"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.182740,22.663524'"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "家_location = 家['geocodes'][0]['location']\n",
    "家_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>citycode</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>广东省中山市振兴路|22号</td>\n",
       "      <td>中国</td>\n",
       "      <td>广东省</td>\n",
       "      <td>0760</td>\n",
       "      <td>中山市</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>442000</td>\n",
       "      <td>振兴路</td>\n",
       "      <td>22号</td>\n",
       "      <td>113.182740,22.663524</td>\n",
       "      <td>门牌号</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  formatted_address country province citycode city district township  adcode  \\\n",
       "0     广东省中山市振兴路|22号      中国      广东省     0760  中山市       []       []  442000   \n",
       "\n",
       "  street number              location level neighborhood.name  \\\n",
       "0    振兴路    22号  113.182740,22.663524   门牌号                []   \n",
       "\n",
       "  neighborhood.type building.name building.type  \n",
       "0                []            []            []  "
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = pd.json_normalize(家['geocodes'])\n",
    "df"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 2、逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'regeocode': {'formatted_address': '广东省中山市古镇镇振兴路22号海洲市场', 'addressComponent': {'country': '中国', 'province': '广东省', 'city': '中山市', 'citycode': '0760', 'district': [], 'adcode': '442000', 'township': '古镇镇', 'towncode': '442000105000', 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'streetNumber': {'street': '振兴路', 'number': '22号', 'location': '113.18274,22.6635239', 'direction': 'Center', 'distance': '0'}, 'businessAreas': [{'location': '113.156352,22.702243', 'name': '均安', 'id': '440606'}]}, 'pois': [{'id': 'B02F80Q11M', 'name': '荣意楼', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '北', 'distance': '163.99', 'location': '113.182628,22.664995', 'address': '古镇镇海洲兴红路38号', 'poiweight': '0.243818', 'businessarea': '均安'}, {'id': 'B02F80163W', 'name': '永华工业大楼', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '西', 'distance': '285.103', 'location': '113.180081,22.66278', 'address': '市边村大道43号', 'poiweight': '0.177073', 'businessarea': '均安'}, {'id': 'B02F800UTN', 'name': '辉达大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '西南', 'distance': '384.093', 'location': '113.180298,22.660906', 'address': '古镇镇海洲海兴路76号', 'poiweight': '0.273377', 'businessarea': '均安'}, {'id': 'B02F80R3UB', 'name': '广兴楼', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '东南', 'distance': '392.132', 'location': '113.185954,22.661616', 'address': '华昌路与华昌路东五路交叉路口处', 'poiweight': '0.214329', 'businessarea': '均安'}, {'id': 'B02F80QF1T', 'name': '比丹利大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': '0760-22312662', 'direction': '东', 'distance': '995.438', 'location': '113.192294,22.661972', 'address': '古镇镇海洲东岸北路215号', 'poiweight': '0.196144', 'businessarea': '均安'}, {'id': 'B02F802GLW', 'name': '创华大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '西南', 'distance': '1000.32', 'location': '113.175235,22.657783', 'address': '海兴路142号', 'poiweight': '0.257606', 'businessarea': '均安'}, {'id': 'B0FFG9Z62Y', 'name': '欧普大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '东', 'distance': '1395.27', 'location': '113.195378,22.658895', 'address': '东岸公路275号', 'poiweight': '0.232092', 'businessarea': '均安'}], 'roads': [{'id': '0760F49F01704228376', 'name': '振兴路', 'direction': '西', 'distance': '21.3222', 'location': '113.183,22.6635'}, {'id': '0760F49F0170429481', 'name': '迎宾路', 'direction': '西', 'distance': '21.3222', 'location': '113.183,22.6635'}, {'id': '0757F49F016042619922', 'name': '振兴路', 'direction': '南', 'distance': '45.9444', 'location': '113.183,22.6639'}], 'roadinters': [{'direction': '西', 'distance': '37.0358', 'location': '113.1830731,22.66339556', 'first_id': '0760F49F01704228376', 'first_name': '振兴路', 'second_id': '0760F49F0170429481', 'second_name': '迎宾路'}], 'aois': [{'id': 'B02F800T1J', 'name': '海洲市场', 'adcode': '442000', 'location': '113.182787,22.662681', 'area': '7998.026599', 'distance': '38.1208', 'type': '060703'}]}}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>status</th>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>info</th>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>infocode</th>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <td>广东省中山市古镇镇振兴路22号海洲市场</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <td>中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <td>广东省</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <td>中山市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <td>0760</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <td>442000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <td>古镇镇</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.towncode</th>\n",
       "      <td>442000105000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <td>振兴路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <td>22号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <td>113.18274,22.6635239</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <td>Center</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <td>[{'location': '113.156352,22.702243', 'name': ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.pois</th>\n",
       "      <td>[{'id': 'B02F80Q11M', 'name': '荣意楼', 'type': '...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.roads</th>\n",
       "      <td>[{'id': '0760F49F01704228376', 'name': '振兴路', ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <td>[{'direction': '西', 'distance': '37.0358', 'lo...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.aois</th>\n",
       "      <td>[{'id': 'B02F800T1J', 'name': '海洲市场', 'adcode'...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                                                   0\n",
       "status                                                                                             1\n",
       "info                                                                                              OK\n",
       "infocode                                                                                       10000\n",
       "regeocode.formatted_address                                                      广东省中山市古镇镇振兴路22号海洲市场\n",
       "regeocode.addressComponent.country                                                                中国\n",
       "regeocode.addressComponent.province                                                              广东省\n",
       "regeocode.addressComponent.city                                                                  中山市\n",
       "regeocode.addressComponent.citycode                                                             0760\n",
       "regeocode.addressComponent.district                                                               []\n",
       "regeocode.addressComponent.adcode                                                             442000\n",
       "regeocode.addressComponent.township                                                              古镇镇\n",
       "regeocode.addressComponent.towncode                                                     442000105000\n",
       "regeocode.addressComponent.neighborhood.name                                                      []\n",
       "regeocode.addressComponent.neighborhood.type                                                      []\n",
       "regeocode.addressComponent.building.name                                                          []\n",
       "regeocode.addressComponent.building.type                                                          []\n",
       "regeocode.addressComponent.streetNumber.street                                                   振兴路\n",
       "regeocode.addressComponent.streetNumber.number                                                   22号\n",
       "regeocode.addressComponent.streetNumber.location                                113.18274,22.6635239\n",
       "regeocode.addressComponent.streetNumber.direction                                             Center\n",
       "regeocode.addressComponent.streetNumber.distance                                                   0\n",
       "regeocode.addressComponent.businessAreas           [{'location': '113.156352,22.702243', 'name': ...\n",
       "regeocode.pois                                     [{'id': 'B02F80Q11M', 'name': '荣意楼', 'type': '...\n",
       "regeocode.roads                                    [{'id': '0760F49F01704228376', 'name': '振兴路', ...\n",
       "regeocode.roadinters                               [{'direction': '西', 'distance': '37.0358', 'lo...\n",
       "regeocode.aois                                     [{'id': 'B02F800T1J', 'name': '海洲市场', 'adcode'..."
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "def  regeocode(location,poitype=None,radius=None,extensions=\"base\",batch=False,roadlevel=None,sig=None,homeorcorp=None):\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    #key='113.182740,22.663524'\n",
    "    params = {\n",
    "        'key':'f01e5675ced7f03e2a139d402e372ad8',\n",
    "        'location':\"113.182740,22.663524\",\n",
    "        'poitype':\"商务写字楼\",\n",
    "        'radius':2000,\n",
    "        'extensions':'all',\n",
    "        'batch':False,\n",
    "        'roadlevel':0,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "家逆地理编码 = regeocode('113.182740,22.663524')\n",
    "print(家逆地理编码)\n",
    "df_家逆地理编码 = pd.json_normalize(家逆地理编码).T\n",
    "display(df_家逆地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'regeocode': {'formatted_address': '广东省中山市古镇镇振兴路22号海洲市场', 'addressComponent': {'country': '中国', 'province': '广东省', 'city': '中山市', 'citycode': '0760', 'district': [], 'adcode': '442000', 'township': '古镇镇', 'towncode': '442000105000', 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'streetNumber': {'street': '振兴路', 'number': '22号', 'location': '113.18274,22.6635239', 'direction': 'Center', 'distance': '0'}, 'businessAreas': [{'location': '113.156352,22.702243', 'name': '均安', 'id': '440606'}]}, 'pois': [{'id': 'B02F80Q11M', 'name': '荣意楼', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '北', 'distance': '163.99', 'location': '113.182628,22.664995', 'address': '古镇镇海洲兴红路38号', 'poiweight': '0.243818', 'businessarea': '均安'}, {'id': 'B02F80163W', 'name': '永华工业大楼', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '西', 'distance': '285.103', 'location': '113.180081,22.66278', 'address': '市边村大道43号', 'poiweight': '0.177073', 'businessarea': '均安'}, {'id': 'B02F800UTN', 'name': '辉达大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '西南', 'distance': '384.093', 'location': '113.180298,22.660906', 'address': '古镇镇海洲海兴路76号', 'poiweight': '0.273377', 'businessarea': '均安'}, {'id': 'B02F80R3UB', 'name': '广兴楼', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '东南', 'distance': '392.132', 'location': '113.185954,22.661616', 'address': '华昌路与华昌路东五路交叉路口处', 'poiweight': '0.214329', 'businessarea': '均安'}, {'id': 'B02F80QF1T', 'name': '比丹利大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': '0760-22312662', 'direction': '东', 'distance': '995.438', 'location': '113.192294,22.661972', 'address': '古镇镇海洲东岸北路215号', 'poiweight': '0.196144', 'businessarea': '均安'}, {'id': 'B02F802GLW', 'name': '创华大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '西南', 'distance': '1000.32', 'location': '113.175235,22.657783', 'address': '海兴路142号', 'poiweight': '0.257606', 'businessarea': '均安'}, {'id': 'B0FFG9Z62Y', 'name': '欧普大厦', 'type': '商务住宅;楼宇;商务写字楼', 'tel': [], 'direction': '东', 'distance': '1395.27', 'location': '113.195378,22.658895', 'address': '东岸公路275号', 'poiweight': '0.232092', 'businessarea': '均安'}], 'roads': [{'id': '0760F49F01704228376', 'name': '振兴路', 'direction': '西', 'distance': '21.3222', 'location': '113.183,22.6635'}, {'id': '0760F49F0170429481', 'name': '迎宾路', 'direction': '西', 'distance': '21.3222', 'location': '113.183,22.6635'}, {'id': '0757F49F016042619922', 'name': '振兴路', 'direction': '南', 'distance': '45.9444', 'location': '113.183,22.6639'}], 'roadinters': [{'direction': '西', 'distance': '37.0358', 'location': '113.1830731,22.66339556', 'first_id': '0760F49F01704228376', 'first_name': '振兴路', 'second_id': '0760F49F0170429481', 'second_name': '迎宾路'}], 'aois': [{'id': 'B02F800T1J', 'name': '海洲市场', 'adcode': '442000', 'location': '113.182787,22.662681', 'area': '7998.026599', 'distance': '38.1208', 'type': '060703'}]}}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <th>...</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <th>regeocode.pois</th>\n",
       "      <th>regeocode.roads</th>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <th>regeocode.aois</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>广东省中山市古镇镇振兴路22号海洲市场</td>\n",
       "      <td>中国</td>\n",
       "      <td>广东省</td>\n",
       "      <td>中山市</td>\n",
       "      <td>0760</td>\n",
       "      <td>[]</td>\n",
       "      <td>442000</td>\n",
       "      <td>...</td>\n",
       "      <td>振兴路</td>\n",
       "      <td>22号</td>\n",
       "      <td>113.18274,22.6635239</td>\n",
       "      <td>Center</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'location': '113.156352,22.702243', 'name': ...</td>\n",
       "      <td>[{'id': 'B02F80Q11M', 'name': '荣意楼', 'type': '...</td>\n",
       "      <td>[{'id': '0760F49F01704228376', 'name': '振兴路', ...</td>\n",
       "      <td>[{'direction': '西', 'distance': '37.0358', 'lo...</td>\n",
       "      <td>[{'id': 'B02F800T1J', 'name': '海洲市场', 'adcode'...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 26 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode regeocode.formatted_address  \\\n",
       "0      1   OK    10000         广东省中山市古镇镇振兴路22号海洲市场   \n",
       "\n",
       "  regeocode.addressComponent.country regeocode.addressComponent.province  \\\n",
       "0                                 中国                                 广东省   \n",
       "\n",
       "  regeocode.addressComponent.city regeocode.addressComponent.citycode  \\\n",
       "0                             中山市                                0760   \n",
       "\n",
       "  regeocode.addressComponent.district regeocode.addressComponent.adcode  ...  \\\n",
       "0                                  []                            442000  ...   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.street  \\\n",
       "0                                            振兴路   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.number  \\\n",
       "0                                            22号   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.location  \\\n",
       "0                             113.18274,22.6635239   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.direction  \\\n",
       "0                                            Center   \n",
       "\n",
       "  regeocode.addressComponent.streetNumber.distance  \\\n",
       "0                                                0   \n",
       "\n",
       "            regeocode.addressComponent.businessAreas  \\\n",
       "0  [{'location': '113.156352,22.702243', 'name': ...   \n",
       "\n",
       "                                      regeocode.pois  \\\n",
       "0  [{'id': 'B02F80Q11M', 'name': '荣意楼', 'type': '...   \n",
       "\n",
       "                                     regeocode.roads  \\\n",
       "0  [{'id': '0760F49F01704228376', 'name': '振兴路', ...   \n",
       "\n",
       "                                regeocode.roadinters  \\\n",
       "0  [{'direction': '西', 'distance': '37.0358', 'lo...   \n",
       "\n",
       "                                      regeocode.aois  \n",
       "0  [{'id': 'B02F800T1J', 'name': '海洲市场', 'adcode'...  \n",
       "\n",
       "[1 rows x 26 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "家逆地理编码_all = regeocode('113.182740,22.663524',extensions=\"all\")\n",
    "print(家逆地理编码_all)\n",
    "df_家逆地理编码_all = pd.json_normalize(家逆地理编码_all)\n",
    "display(df_家逆地理编码_all)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>direction</th>\n",
       "      <th>distance</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0760F49F01704228376</td>\n",
       "      <td>振兴路</td>\n",
       "      <td>西</td>\n",
       "      <td>21.3222</td>\n",
       "      <td>113.183,22.6635</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0760F49F0170429481</td>\n",
       "      <td>迎宾路</td>\n",
       "      <td>西</td>\n",
       "      <td>21.3222</td>\n",
       "      <td>113.183,22.6635</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0757F49F016042619922</td>\n",
       "      <td>振兴路</td>\n",
       "      <td>南</td>\n",
       "      <td>45.9444</td>\n",
       "      <td>113.183,22.6639</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                     id name direction distance         location\n",
       "0   0760F49F01704228376  振兴路         西  21.3222  113.183,22.6635\n",
       "1    0760F49F0170429481  迎宾路         西  21.3222  113.183,22.6635\n",
       "2  0757F49F016042619922  振兴路         南  45.9444  113.183,22.6639"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>direction</th>\n",
       "      <th>distance</th>\n",
       "      <th>location</th>\n",
       "      <th>first_id</th>\n",
       "      <th>first_name</th>\n",
       "      <th>second_id</th>\n",
       "      <th>second_name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>西</td>\n",
       "      <td>37.0358</td>\n",
       "      <td>113.1830731,22.66339556</td>\n",
       "      <td>0760F49F01704228376</td>\n",
       "      <td>振兴路</td>\n",
       "      <td>0760F49F0170429481</td>\n",
       "      <td>迎宾路</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  direction distance                 location             first_id first_name  \\\n",
       "0         西  37.0358  113.1830731,22.66339556  0760F49F01704228376        振兴路   \n",
       "\n",
       "            second_id second_name  \n",
       "0  0760F49F0170429481         迎宾路  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>adcode</th>\n",
       "      <th>location</th>\n",
       "      <th>area</th>\n",
       "      <th>distance</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B02F800T1J</td>\n",
       "      <td>海洲市场</td>\n",
       "      <td>442000</td>\n",
       "      <td>113.182787,22.662681</td>\n",
       "      <td>7998.026599</td>\n",
       "      <td>38.1208</td>\n",
       "      <td>060703</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           id  name  adcode              location         area distance  \\\n",
       "0  B02F800T1J  海洲市场  442000  113.182787,22.662681  7998.026599  38.1208   \n",
       "\n",
       "     type  \n",
       "0  060703  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>tel</th>\n",
       "      <th>direction</th>\n",
       "      <th>distance</th>\n",
       "      <th>location</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>businessarea</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B02F80Q11M</td>\n",
       "      <td>荣意楼</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>北</td>\n",
       "      <td>163.99</td>\n",
       "      <td>113.182628,22.664995</td>\n",
       "      <td>古镇镇海洲兴红路38号</td>\n",
       "      <td>0.243818</td>\n",
       "      <td>均安</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B02F80163W</td>\n",
       "      <td>永华工业大楼</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>西</td>\n",
       "      <td>285.103</td>\n",
       "      <td>113.180081,22.66278</td>\n",
       "      <td>市边村大道43号</td>\n",
       "      <td>0.177073</td>\n",
       "      <td>均安</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B02F800UTN</td>\n",
       "      <td>辉达大厦</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>西南</td>\n",
       "      <td>384.093</td>\n",
       "      <td>113.180298,22.660906</td>\n",
       "      <td>古镇镇海洲海兴路76号</td>\n",
       "      <td>0.273377</td>\n",
       "      <td>均安</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B02F80R3UB</td>\n",
       "      <td>广兴楼</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>东南</td>\n",
       "      <td>392.132</td>\n",
       "      <td>113.185954,22.661616</td>\n",
       "      <td>华昌路与华昌路东五路交叉路口处</td>\n",
       "      <td>0.214329</td>\n",
       "      <td>均安</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B02F80QF1T</td>\n",
       "      <td>比丹利大厦</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "      <td>0760-22312662</td>\n",
       "      <td>东</td>\n",
       "      <td>995.438</td>\n",
       "      <td>113.192294,22.661972</td>\n",
       "      <td>古镇镇海洲东岸北路215号</td>\n",
       "      <td>0.196144</td>\n",
       "      <td>均安</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B02F802GLW</td>\n",
       "      <td>创华大厦</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>西南</td>\n",
       "      <td>1000.32</td>\n",
       "      <td>113.175235,22.657783</td>\n",
       "      <td>海兴路142号</td>\n",
       "      <td>0.257606</td>\n",
       "      <td>均安</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFG9Z62Y</td>\n",
       "      <td>欧普大厦</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "      <td>[]</td>\n",
       "      <td>东</td>\n",
       "      <td>1395.27</td>\n",
       "      <td>113.195378,22.658895</td>\n",
       "      <td>东岸公路275号</td>\n",
       "      <td>0.232092</td>\n",
       "      <td>均安</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           id    name           type            tel direction distance  \\\n",
       "0  B02F80Q11M     荣意楼  商务住宅;楼宇;商务写字楼             []         北   163.99   \n",
       "1  B02F80163W  永华工业大楼  商务住宅;楼宇;商务写字楼             []         西  285.103   \n",
       "2  B02F800UTN    辉达大厦  商务住宅;楼宇;商务写字楼             []        西南  384.093   \n",
       "3  B02F80R3UB     广兴楼  商务住宅;楼宇;商务写字楼             []        东南  392.132   \n",
       "4  B02F80QF1T   比丹利大厦  商务住宅;楼宇;商务写字楼  0760-22312662         东  995.438   \n",
       "5  B02F802GLW    创华大厦  商务住宅;楼宇;商务写字楼             []        西南  1000.32   \n",
       "6  B0FFG9Z62Y    欧普大厦  商务住宅;楼宇;商务写字楼             []         东  1395.27   \n",
       "\n",
       "               location          address poiweight businessarea  \n",
       "0  113.182628,22.664995      古镇镇海洲兴红路38号  0.243818           均安  \n",
       "1   113.180081,22.66278         市边村大道43号  0.177073           均安  \n",
       "2  113.180298,22.660906      古镇镇海洲海兴路76号  0.273377           均安  \n",
       "3  113.185954,22.661616  华昌路与华昌路东五路交叉路口处  0.214329           均安  \n",
       "4  113.192294,22.661972    古镇镇海洲东岸北路215号  0.196144           均安  \n",
       "5  113.175235,22.657783          海兴路142号  0.257606           均安  \n",
       "6  113.195378,22.658895         东岸公路275号  0.232092           均安  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "roads = pd.json_normalize(家逆地理编码_all['regeocode']['roads'])\n",
    "roadinters = pd.json_normalize(家逆地理编码_all['regeocode']['roadinters'])\n",
    "aois = pd.json_normalize(家逆地理编码_all['regeocode']['aois'])\n",
    "pois = pd.json_normalize(家逆地理编码_all['regeocode']['pois'])\n",
    "display(roads,roadinters,aois,pois)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 黑人疑惑？？？？locationg为何为self？"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 3、步行路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 准备base_url，params，response。json（）113.181066,22.658546\n",
    "def walking(origin,destination,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)家_location: 113.182740,22.663524 (终点)海中_location: 113.182740,22.663524\n"
     ]
    }
   ],
   "source": [
    "# 准备walking参数\n",
    "# B-2 准备walking 参数\n",
    "海中 = geocode('广东省中山市海洲初级中学')\n",
    "#print(目的地)\n",
    "海中_location = 海中['geocodes'][0]['location']\n",
    "#print(目的地_location)\n",
    "家_location = 家['geocodes'][0]['location']\n",
    "#print(家_location)\n",
    "print(\"(起点)家_location:\",家_location,\"(终点)海中_location:\",海中_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向南步行1米到达目的地</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>113.182739,22.66352;113.182739,22.66352</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   instruction orientation road distance duration  \\\n",
       "0  向南步行1米到达目的地           南   []        1        1   \n",
       "\n",
       "                                  polyline action assistant_action walk_type  \n",
       "0  113.182739,22.66352;113.182739,22.66352     []            到达目的地         0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0    向南步行1米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 路径规划\n",
    "家_海中 = walking(家_location,海中_location)\n",
    "df_步行路径规划 = pd.json_normalize(家_海中[\"route\"][\"paths\"][0]['steps'])\n",
    "display(df_步行路径规划)\n",
    "df_步行路径规划[\"instruction\"]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 我觉得路径规划应该会用到较多的推荐算法，根据平日的体验，输入起点与终点后，通常会给出至少一条路线的选择"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 4、公交路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)健身广场_location: 113.182740,22.663524 (终点)古镇镇政府_location: 113.182740,22.663524\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>count</th>\n",
       "      <th>route.origin</th>\n",
       "      <th>route.destination</th>\n",
       "      <th>route.paths</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>ok</td>\n",
       "      <td>10000</td>\n",
       "      <td>1</td>\n",
       "      <td>113.182740,22.663524</td>\n",
       "      <td>113.182740,22.663524</td>\n",
       "      <td>[{'distance': '1', 'duration': '1', 'steps': [...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode count          route.origin     route.destination  \\\n",
       "0      1   ok    10000     1  113.182740,22.663524  113.182740,22.663524   \n",
       "\n",
       "                                         route.paths  \n",
       "0  [{'distance': '1', 'duration': '1', 'steps': [...  "
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def integrated(origin,destination,city,cityd=None,extensions='base',strategy=None,nightflag=0,date=None,time=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'city':city,\n",
    "        'cityd':cityd,\n",
    "        'extensions':extensions,\n",
    "        'strategy':strategy,\n",
    "        'nightflag':nightflag,\n",
    "        'date':date,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "# 准备乘车的参数\n",
    "健身广场 = geocode('广东省中山市海洲健身广场')\n",
    "健身广场_location = 健身广场['geocodes'][0]['location']\n",
    "古镇镇政府 = geocode('广东省中山市古镇镇政府')\n",
    "古镇镇政府_location = 古镇镇政府['geocodes'][0]['location']\n",
    "print(\"(起点)健身广场_location:\",健身广场_location,\"(终点)古镇镇政府_location:\",古镇镇政府_location)\n",
    "\n",
    "健身广场_古镇镇政府 = integrated(健身广场_location,古镇镇政府_location,city='中山',extensions='all')\n",
    "df_bus = pd.json_normalize(健身广场_古镇镇政府)\n",
    "df_bus"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "ename": "KeyError",
     "evalue": "'transits'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mKeyError\u001b[0m                                  Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-13-c6c94b678f55>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mjson_normalize\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0m健身广场_古镇镇政府\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"route\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'transits'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mKeyError\u001b[0m: 'transits'"
     ]
    }
   ],
   "source": [
    "pd.json_normalize(健身广场_古镇镇政府[\"route\"]['transits'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "pd.json_normalize(健身广场_古镇镇政府[\"route\"]['transits'][0]['segments'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "ename": "KeyError",
     "evalue": "'transits'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mKeyError\u001b[0m                                  Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-14-aa0685711346>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mdf_bus_基本信息\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mjson_normalize\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0m健身广场_古镇镇政府\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"route\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'transits'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'segments'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'bus'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"buslines\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      2\u001b[0m \u001b[0mdf_bus_基本信息\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mKeyError\u001b[0m: 'transits'"
     ]
    }
   ],
   "source": [
    "df_bus_基本信息 = pd.json_normalize(健身广场_古镇镇政府[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"])\n",
    "df_bus_基本信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "ename": "KeyError",
     "evalue": "'transits'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mKeyError\u001b[0m                                  Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-15-167f424cf48d>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m      1\u001b[0m \u001b[1;31m# C-4 公交车信息处理结果\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[0m_23路公交车\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mjson_normalize\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0m健身广场_古镇镇政府\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"route\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'transits'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'segments'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'bus'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"buslines\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"via_stops\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrename\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcolumns\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;33m{\u001b[0m\u001b[1;34m\"name\"\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;34m\"_23路公交车\"\u001b[0m\u001b[1;33m}\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      3\u001b[0m \u001b[0m_284路公交车\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mjson_normalize\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0m健身广场_古镇镇政府\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"route\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'transits'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'segments'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'bus'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"buslines\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m1\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"via_stops\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrename\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcolumns\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;33m{\u001b[0m\u001b[1;34m\"name\"\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;34m\"_284路公交车\"\u001b[0m\u001b[1;33m}\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      4\u001b[0m \u001b[0m_518路公交车\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mjson_normalize\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0m健身广场_古镇镇政府\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"route\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'transits'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'segments'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'bus'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"buslines\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m2\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"via_stops\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrename\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcolumns\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;33m{\u001b[0m\u001b[1;34m\"name\"\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;34m\"_518路公交车\"\u001b[0m\u001b[1;33m}\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      5\u001b[0m \u001b[0mdisplay\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0m_23路公交车\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0m_284路公交车\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0m_518路公交车\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mKeyError\u001b[0m: 'transits'"
     ]
    }
   ],
   "source": [
    "# C-4 公交车信息处理结果\n",
    "_23路公交车 = pd.json_normalize(健身广场_古镇镇政府[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][0][\"via_stops\"]).rename(columns={\"name\":\"_23路公交车\"})\n",
    "_284路公交车 = pd.json_normalize(健身广场_古镇镇政府[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][1][\"via_stops\"]).rename(columns={\"name\":\"_284路公交车\"})\n",
    "_518路公交车 = pd.json_normalize(健身广场_古镇镇政府[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][2][\"via_stops\"]).rename(columns={\"name\":\"_518路公交车\"})\n",
    "display(_23路公交车,_284路公交车,_518路公交车)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 5、行政区域查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0758</td>\n",
       "      <td>441200</td>\n",
       "      <td>肇庆市</td>\n",
       "      <td>112.472529,23.051546</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0758', 'adcode': '441224', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0757</td>\n",
       "      <td>440600</td>\n",
       "      <td>佛山市</td>\n",
       "      <td>113.122717,23.028762</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0757', 'adcode': '440607', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0754</td>\n",
       "      <td>440500</td>\n",
       "      <td>汕头市</td>\n",
       "      <td>116.708463,23.37102</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0754', 'adcode': '440513', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0752</td>\n",
       "      <td>441300</td>\n",
       "      <td>惠州市</td>\n",
       "      <td>114.412599,23.079404</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0752', 'adcode': '441324', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0755</td>\n",
       "      <td>440300</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>114.085947,22.547</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440306', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0756</td>\n",
       "      <td>440400</td>\n",
       "      <td>珠海市</td>\n",
       "      <td>113.553986,22.224979</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0756', 'adcode': '440402', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0759</td>\n",
       "      <td>440800</td>\n",
       "      <td>湛江市</td>\n",
       "      <td>110.364977,21.274898</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0759', 'adcode': '440883', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0662</td>\n",
       "      <td>441700</td>\n",
       "      <td>阳江市</td>\n",
       "      <td>111.975107,21.859222</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0662', 'adcode': '441781', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0660</td>\n",
       "      <td>441500</td>\n",
       "      <td>汕尾市</td>\n",
       "      <td>115.364238,22.774485</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0660', 'adcode': '441523', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0768</td>\n",
       "      <td>445100</td>\n",
       "      <td>潮州市</td>\n",
       "      <td>116.632301,23.661701</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0768', 'adcode': '445122', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0750</td>\n",
       "      <td>440700</td>\n",
       "      <td>江门市</td>\n",
       "      <td>113.094942,22.590431</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0750', 'adcode': '440784', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0766</td>\n",
       "      <td>445300</td>\n",
       "      <td>云浮市</td>\n",
       "      <td>112.044439,22.929801</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0766', 'adcode': '445322', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>0767</td>\n",
       "      <td>442100</td>\n",
       "      <td>东沙群岛</td>\n",
       "      <td>116.887312,20.617512</td>\n",
       "      <td>city</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>0668</td>\n",
       "      <td>440900</td>\n",
       "      <td>茂名市</td>\n",
       "      <td>110.919229,21.659751</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0668', 'adcode': '440983', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0762</td>\n",
       "      <td>441600</td>\n",
       "      <td>河源市</td>\n",
       "      <td>114.697802,23.746266</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0762', 'adcode': '441622', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0753</td>\n",
       "      <td>441400</td>\n",
       "      <td>梅州市</td>\n",
       "      <td>116.117582,24.299112</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0753', 'adcode': '441427', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东莞市</td>\n",
       "      <td>113.746262,23.046237</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0769', 'adcode': '441900', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0663</td>\n",
       "      <td>445200</td>\n",
       "      <td>揭阳市</td>\n",
       "      <td>116.355733,23.543778</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445222', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>0763</td>\n",
       "      <td>441800</td>\n",
       "      <td>清远市</td>\n",
       "      <td>113.051227,23.685022</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0763', 'adcode': '441882', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>0751</td>\n",
       "      <td>440200</td>\n",
       "      <td>韶关市</td>\n",
       "      <td>113.591544,24.801322</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0751', 'adcode': '440282', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>020</td>\n",
       "      <td>440100</td>\n",
       "      <td>广州市</td>\n",
       "      <td>113.280637,23.125178</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '020', 'adcode': '440117', 'name...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>0760</td>\n",
       "      <td>442000</td>\n",
       "      <td>中山市</td>\n",
       "      <td>113.382391,22.521113</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0760', 'adcode': '442000', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode  name                center level  \\\n",
       "0      0758  441200   肇庆市  112.472529,23.051546  city   \n",
       "1      0757  440600   佛山市  113.122717,23.028762  city   \n",
       "2      0754  440500   汕头市   116.708463,23.37102  city   \n",
       "3      0752  441300   惠州市  114.412599,23.079404  city   \n",
       "4      0755  440300   深圳市     114.085947,22.547  city   \n",
       "5      0756  440400   珠海市  113.553986,22.224979  city   \n",
       "6      0759  440800   湛江市  110.364977,21.274898  city   \n",
       "7      0662  441700   阳江市  111.975107,21.859222  city   \n",
       "8      0660  441500   汕尾市  115.364238,22.774485  city   \n",
       "9      0768  445100   潮州市  116.632301,23.661701  city   \n",
       "10     0750  440700   江门市  113.094942,22.590431  city   \n",
       "11     0766  445300   云浮市  112.044439,22.929801  city   \n",
       "12     0767  442100  东沙群岛  116.887312,20.617512  city   \n",
       "13     0668  440900   茂名市  110.919229,21.659751  city   \n",
       "14     0762  441600   河源市  114.697802,23.746266  city   \n",
       "15     0753  441400   梅州市  116.117582,24.299112  city   \n",
       "16     0769  441900   东莞市  113.746262,23.046237  city   \n",
       "17     0663  445200   揭阳市  116.355733,23.543778  city   \n",
       "18     0763  441800   清远市  113.051227,23.685022  city   \n",
       "19     0751  440200   韶关市  113.591544,24.801322  city   \n",
       "20      020  440100   广州市  113.280637,23.125178  city   \n",
       "21     0760  442000   中山市  113.382391,22.521113  city   \n",
       "\n",
       "                                            districts  \n",
       "0   [{'citycode': '0758', 'adcode': '441224', 'nam...  \n",
       "1   [{'citycode': '0757', 'adcode': '440607', 'nam...  \n",
       "2   [{'citycode': '0754', 'adcode': '440513', 'nam...  \n",
       "3   [{'citycode': '0752', 'adcode': '441324', 'nam...  \n",
       "4   [{'citycode': '0755', 'adcode': '440306', 'nam...  \n",
       "5   [{'citycode': '0756', 'adcode': '440402', 'nam...  \n",
       "6   [{'citycode': '0759', 'adcode': '440883', 'nam...  \n",
       "7   [{'citycode': '0662', 'adcode': '441781', 'nam...  \n",
       "8   [{'citycode': '0660', 'adcode': '441523', 'nam...  \n",
       "9   [{'citycode': '0768', 'adcode': '445122', 'nam...  \n",
       "10  [{'citycode': '0750', 'adcode': '440784', 'nam...  \n",
       "11  [{'citycode': '0766', 'adcode': '445322', 'nam...  \n",
       "12                                                 []  \n",
       "13  [{'citycode': '0668', 'adcode': '440983', 'nam...  \n",
       "14  [{'citycode': '0762', 'adcode': '441622', 'nam...  \n",
       "15  [{'citycode': '0753', 'adcode': '441427', 'nam...  \n",
       "16  [{'citycode': '0769', 'adcode': '441900', 'nam...  \n",
       "17  [{'citycode': '0663', 'adcode': '445222', 'nam...  \n",
       "18  [{'citycode': '0763', 'adcode': '441882', 'nam...  \n",
       "19  [{'citycode': '0751', 'adcode': '440282', 'nam...  \n",
       "20  [{'citycode': '020', 'adcode': '440117', 'name...  \n",
       "21  [{'citycode': '0760', 'adcode': '442000', 'nam...  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0663</td>\n",
       "      <td>445222</td>\n",
       "      <td>揭西县</td>\n",
       "      <td>115.838708,23.4273</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445222', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0663</td>\n",
       "      <td>445281</td>\n",
       "      <td>普宁市</td>\n",
       "      <td>116.165082,23.29788</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445281', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0663</td>\n",
       "      <td>445224</td>\n",
       "      <td>惠来县</td>\n",
       "      <td>116.295832,23.029834</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445224', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>揭东区</td>\n",
       "      <td>116.412947,23.569887</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445203', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0663</td>\n",
       "      <td>445202</td>\n",
       "      <td>榕城区</td>\n",
       "      <td>116.357045,23.535524</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445202', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  citycode  adcode name                center     level  \\\n",
       "0     0663  445222  揭西县    115.838708,23.4273  district   \n",
       "1     0663  445281  普宁市   116.165082,23.29788  district   \n",
       "2     0663  445224  惠来县  116.295832,23.029834  district   \n",
       "3     0663  445203  揭东区  116.412947,23.569887  district   \n",
       "4     0663  445202  榕城区  116.357045,23.535524  district   \n",
       "\n",
       "                                           districts  \n",
       "0  [{'citycode': '0663', 'adcode': '445222', 'nam...  \n",
       "1  [{'citycode': '0663', 'adcode': '445281', 'nam...  \n",
       "2  [{'citycode': '0663', 'adcode': '445224', 'nam...  \n",
       "3  [{'citycode': '0663', 'adcode': '445203', 'nam...  \n",
       "4  [{'citycode': '0663', 'adcode': '445202', 'nam...  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>曲溪街道</td>\n",
       "      <td>116.433,23.6266</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>磐东街道</td>\n",
       "      <td>116.329,23.5763</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>桂岭镇</td>\n",
       "      <td>116.231,23.6255</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>新亨镇</td>\n",
       "      <td>116.336,23.7254</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>玉窖镇</td>\n",
       "      <td>116.517,23.6353</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>揭阳高新技术产业开发区</td>\n",
       "      <td>116.115,23.5583</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>卅岭农场</td>\n",
       "      <td>116.113,23.5426</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>锡场镇</td>\n",
       "      <td>116.313,23.6466</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>玉湖镇</td>\n",
       "      <td>116.252,23.7352</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>月城镇</td>\n",
       "      <td>116.268,23.6011</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>白塔镇</td>\n",
       "      <td>116.169,23.6008</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>坪上农场</td>\n",
       "      <td>116.498,23.5529</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>蓝城工业园区</td>\n",
       "      <td>116.3,23.5505</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>东径茶场</td>\n",
       "      <td>116.482,23.6268</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>云路镇</td>\n",
       "      <td>116.492,23.6311</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>霖磐镇</td>\n",
       "      <td>116.22,23.5664</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>珠海揭阳产业转移工业园</td>\n",
       "      <td>116.136,23.5512</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>龙尾镇</td>\n",
       "      <td>116.134,23.6221</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>0663</td>\n",
       "      <td>445203</td>\n",
       "      <td>埔田镇</td>\n",
       "      <td>116.366,23.6943</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode         name           center   level districts\n",
       "0      0663  445203         曲溪街道  116.433,23.6266  street        []\n",
       "1      0663  445203         磐东街道  116.329,23.5763  street        []\n",
       "2      0663  445203          桂岭镇  116.231,23.6255  street        []\n",
       "3      0663  445203          新亨镇  116.336,23.7254  street        []\n",
       "4      0663  445203          玉窖镇  116.517,23.6353  street        []\n",
       "5      0663  445203  揭阳高新技术产业开发区  116.115,23.5583  street        []\n",
       "6      0663  445203         卅岭农场  116.113,23.5426  street        []\n",
       "7      0663  445203          锡场镇  116.313,23.6466  street        []\n",
       "8      0663  445203          玉湖镇  116.252,23.7352  street        []\n",
       "9      0663  445203          月城镇  116.268,23.6011  street        []\n",
       "10     0663  445203          白塔镇  116.169,23.6008  street        []\n",
       "11     0663  445203         坪上农场  116.498,23.5529  street        []\n",
       "12     0663  445203       蓝城工业园区    116.3,23.5505  street        []\n",
       "13     0663  445203         东径茶场  116.482,23.6268  street        []\n",
       "14     0663  445203          云路镇  116.492,23.6311  street        []\n",
       "15     0663  445203          霖磐镇   116.22,23.5664  street        []\n",
       "16     0663  445203  珠海揭阳产业转移工业园  116.136,23.5512  street        []\n",
       "17     0663  445203          龙尾镇  116.134,23.6221  street        []\n",
       "18     0663  445203          埔田镇  116.366,23.6943  street        []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "def district(keywords,subdistrict=None,page=None,offset=None,extensions='base',filter=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params = {\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'extensions':extensions,\n",
    "        'filter':filter,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "行政区域 = district(keywords='广东',extensions='all',subdistrict=3)\n",
    "df_行政区域_1级 = pd.json_normalize(行政区域[\"districts\"][0]['districts'])\n",
    "df_行政区域_2级_揭阳市 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][17]['districts'])\n",
    "df_行政区域_3级_揭东区 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][17]['districts'][3]['districts'])\n",
    "display(df_行政区域_1级,df_行政区域_2级_揭阳市,df_行政区域_3级_揭东区)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 个人认为行政区域的查询应该会用到较大的数据库资料，里面需要包含很多的地区资料"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 6.1搜索POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '330',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B02F8037WL',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '临海边防派出所',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '火炬开发区临海工业园马安村',\n",
       "   'location': '113.583506,22.571493',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313648612',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018045_634',\n",
       "   'entr_location': '113.5835,22.571568',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-23 15:21:25',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '5.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B02F80081Z',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局西区分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '西区富华道38号',\n",
       "   'location': '113.347746,22.521618',\n",
       "   'tel': '0760-23187999',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313622712',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018043_5225',\n",
       "   'entr_location': '113.347731,22.521000',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-08 15:58:07',\n",
       "   'alias': '西区公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFHN7BQM ',\n",
       "     'name': ' 中山市公安局西区分局(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.347796,22.521223',\n",
       "     'address': ' 富华道与穗苑大街交叉口东北100米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/86e59cbab9e306c2e978619e3605aeaf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/131111a660c529f0eb63c731ae5e38ea'}]},\n",
       "  {'id': 'B02F80Q6I3',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局森林分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '中山三路26号22层',\n",
       "   'location': '113.386951,22.512437',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313631012',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018044_78042',\n",
       "   'entr_location': '113.386981,22.512688',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-10 18:45:36',\n",
       "   'alias': '森林公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5434ddf9a310247a8780cb38'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/561c8678a310dc9d3de94777'}]},\n",
       "  {'id': 'B02F8038R6',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局东区分局巡逻警察大队',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '中山五路55号之一',\n",
       "   'location': '113.414027,22.516327',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313631320',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018044_78030',\n",
       "   'entr_location': '113.414015,22.516382',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-07 23:07:11',\n",
       "   'alias': '东区公安分局巡警大队',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFHMX4OI ',\n",
       "     'name': ' 中山市公安局东区分局巡逻警察大队(西南门) ',\n",
       "     'sname': ' 西南门 ',\n",
       "     'location': '113.414000,22.516370',\n",
       "     'address': ' 中山五路55之1号附近 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/326fcc39ebf308670a7a55e2ae7b5540'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5626040ea3102670a361c4fb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5434da81a310247a8780354f'}]},\n",
       "  {'id': 'B02F80216V',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '浪网派出所',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '人民路2号',\n",
       "   'location': '113.464455,22.626989',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313735700',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F017044_711',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-09 18:24:17',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/96748db0966d7c0e7247917d07e6fb57'}]},\n",
       "  {'id': 'B02F800Q3Y',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局沙溪分局巡逻警察大队',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': [],\n",
       "   'location': '113.317977,22.507782',\n",
       "   'tel': '0760-87794444;0760-87110030',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313620521',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018043_2658',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-30 14:08:14',\n",
       "   'alias': '沙溪公安分局巡警大队',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b4e7ea995ced2c0598b76df56b5d08ce'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f654f4a9323b8e52b9be872cb0136e0d'}]},\n",
       "  {'id': 'B02F801ZFA',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '鹤湾派出所',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '三乡镇新圩金湾装饰广场展厅A-103号铺即',\n",
       "   'location': '113.466907,22.325428',\n",
       "   'tel': '0760-23186370;0760-86680900',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313339701',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F021044_565',\n",
       "   'entr_location': '113.466863,22.325385',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-10 20:06:43',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c00c42ba7a5f667a3d9903ceffd5b90c'}]},\n",
       "  {'id': 'B0FFIUMUV4',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局神湾分局出入境服务大厅',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '神湾镇神湾大道中52号',\n",
       "   'location': '113.363689,22.305502',\n",
       "   'tel': '0760-23186007',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313326910',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.363839,22.305442',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-22 13:52:28',\n",
       "   'alias': '神湾公安分局出入境服务大厅',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B02F802QKB',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局阜沙分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察|政府机构及社会团体;政府机关;乡镇级政府及事业单位',\n",
       "   'typecode': '130501|130105',\n",
       "   'biz_type': [],\n",
       "   'address': '阜沙大道41号',\n",
       "   'location': '113.347310,22.666989',\n",
       "   'tel': '0760-23406110',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413020702',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F016043_51454',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-25 14:30:22',\n",
       "   'alias': '阜沙公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8950f82ac9ef8de2fbb7fc2196c1ef62'}]},\n",
       "  {'id': 'B02F801X5K',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '板芙派出所',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '板芙北路29号',\n",
       "   'location': '113.323011,22.415995',\n",
       "   'tel': '0760-23186610',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313429522',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F019043_461',\n",
       "   'entr_location': '113.323147,22.416189',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-09 16:38:01',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e49d3b14fd984d49f725b6f32892ca29'}]},\n",
       "  {'id': 'B02F800S2Z',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局三角分局(高平大道)',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '三角镇高平大道39号',\n",
       "   'location': '113.467698,22.703408',\n",
       "   'tel': '0760-23185005',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413034711',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F016044_1267',\n",
       "   'entr_location': '113.46783,22.703031',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-02-18 13:21:22',\n",
       "   'alias': '三角公安分局(高平大道)',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b3df9501871aec9c5bd3b6ed4b74b6af'}]},\n",
       "  {'id': 'B0FFH6NAS5',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '西涌派出所',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '西涌顺兴南路6号',\n",
       "   'location': '113.253025,22.529633',\n",
       "   'tel': '0760-23189711',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313623010',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018042_209',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-15 12:35:48',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFHLS503 ',\n",
       "     'name': ' 西涌派出所(东南门) ',\n",
       "     'sname': ' 东南门 ',\n",
       "     'location': '113.253115,22.529744',\n",
       "     'address': ' 顺兴南路3号附近 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0c1273c1df14ff07412ee76f3c0e02c3'}]},\n",
       "  {'id': 'B0FFGB61EF',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局板芙分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '板芙北路123号',\n",
       "   'location': '113.323656,22.415966',\n",
       "   'tel': '0760-23186606;0760-86506323',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313429522',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F019043_460',\n",
       "   'entr_location': '113.323432,22.415934',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-17 11:21:56',\n",
       "   'alias': '板芙公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9a3d3b040c02055cce61dc5abf277727'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1e44799f975709b9b2c318e2325de087'}]},\n",
       "  {'id': 'B02F8037UK',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '张家边派出所',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '火炬开发区街道港城路5号',\n",
       "   'location': '113.463274,22.539652',\n",
       "   'tel': '0760-23185685',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313634720',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018044_87533',\n",
       "   'entr_location': '113.46295,22.53936',\n",
       "   'business_area': '张家边',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-18 14:51:10',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFHNZJA3 ',\n",
       "     'name': ' 张家边派出所(西南门) ',\n",
       "     'sname': ' 西南门 ',\n",
       "     'location': '113.462942,22.539350',\n",
       "     'address': ' 东镇大道与港城路交叉口南100米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/562602daa3102670a3616dbf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/562602daa3102670a3616dc1'}]},\n",
       "  {'id': 'B02F80247W',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '肖家村派出所',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '沥金路1',\n",
       "   'location': '113.479784,22.360408',\n",
       "   'tel': '0760-23186380;0760-86683951',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313433801',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F020044_668',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-03 17:05:05',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/805a0c8fb4de0dc3d98c1fab64d22dea'}]},\n",
       "  {'id': 'B02F800S3B',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局坦洲分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '坦洲镇坦神北路113号',\n",
       "   'location': '113.463628,22.277906',\n",
       "   'tel': '0760-86651312',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313333700',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F021044_412',\n",
       "   'entr_location': '113.46312,22.277508',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-20 16:29:25',\n",
       "   'alias': '坦洲公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFHLV3R0 ',\n",
       "     'name': ' 中山市公安局坦洲分局(西南门) ',\n",
       "     'sname': ' 西南门 ',\n",
       "     'location': '113.463187,22.277562',\n",
       "     'address': ' 坦神北路与星晖北路交叉口西北200米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d25c870a29e21fef081b0b220865a17d'}]},\n",
       "  {'id': 'B02F800S31',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局沙溪分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '沙溪镇宝珠中路9号',\n",
       "   'location': '113.317301,22.507539',\n",
       "   'tel': '0760-23189800;0760-23189822',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313620521',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018043_2669',\n",
       "   'entr_location': '113.317355,22.507404',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-15 12:59:56',\n",
       "   'alias': '沙溪公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFHLQ6ZS ',\n",
       "     'name': ' 中山市公安局沙溪分局(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.317355,22.507476',\n",
       "     'address': ' 宝珠中路9号附近 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5f69dba71a7e86b97f2c21114addabbb'}]},\n",
       "  {'id': 'B02F800S1E',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局东升分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '东升镇东港大道5号',\n",
       "   'location': '113.292946,22.622797',\n",
       "   'tel': '0760-23187610',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313724321',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F017043_159',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-27 13:29:48',\n",
       "   'alias': '东升公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8bf7c86e7df61af1c1d89d495e23efb1'}]},\n",
       "  {'id': 'B02F800S12',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局出入境服务大厅',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130501',\n",
       "   'biz_type': [],\n",
       "   'address': '兴中道26号',\n",
       "   'location': '113.388790,22.509396',\n",
       "   'tel': '0760-23188872;0760-23188973',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313631100',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F018044_4963',\n",
       "   'entr_location': '113.388491,22.509414',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-22 13:49:09',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6fd32c52906d67855b32637d15632b03'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/16cb90d2fed62cd3884631581fde08b3'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/561c8680a310dc9d3de949a5'}]},\n",
       "  {'id': 'B02F800S0B',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中山市公安局三乡分局',\n",
       "   'tag': [],\n",
       "   'type': '政府机构及社会团体;工商税务机构;工商部门|政府机构及社会团体;公检法机构;公安警察',\n",
       "   'typecode': '130701|130501',\n",
       "   'biz_type': [],\n",
       "   'address': '建设路11',\n",
       "   'location': '113.436742,22.357629',\n",
       "   'tel': '0760-86685928',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '0760',\n",
       "   'cityname': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'adname': '中山市',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3313432422',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F020044_5317;431',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-03 17:24:24',\n",
       "   'alias': '三乡公安分局',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFHM5Z0D ',\n",
       "     'name': ' 中山市公安局三乡分局(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.436629,22.357659',\n",
       "     'address': ' 建设路与振华路交叉口西南50米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fa31ac00573d19cbb05689724443cbef'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d687b3a9fd4ca88ecf0128befd3582a1'}]}]}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def place_text(keywords,types,city=None,citylimit=None,children=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params = {\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'citylimit':True,\n",
    "        'children':children,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "near_home = place_text('公检法机构','公安警察',city=\"中山市\",children=1,extensions='all')\n",
    "near_home\n",
    "# 无论输入啥都请求正常，但只有输入大学才会有内容"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>tag</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>...</th>\n",
       "      <th>discount_num</th>\n",
       "      <th>event</th>\n",
       "      <th>children</th>\n",
       "      <th>photos</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B02F8037WL</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>临海边防派出所</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>火炬开发区临海工业园马安村</td>\n",
       "      <td>113.583506,22.571493</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>5.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B02F80081Z</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局西区分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>西区富华道38号</td>\n",
       "      <td>113.347746,22.521618</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHN7BQM ', 'name': ' 中山市公安局西区分局(南...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B02F80Q6I3</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局森林分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山三路26号22层</td>\n",
       "      <td>113.386951,22.512437</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B02F8038R6</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局东区分局巡逻警察大队</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山五路55号之一</td>\n",
       "      <td>113.414027,22.516327</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHMX4OI ', 'name': ' 中山市公安局东区分局巡逻...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B02F80216V</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>浪网派出所</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>人民路2号</td>\n",
       "      <td>113.464455,22.626989</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B02F800Q3Y</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局沙溪分局巡逻警察大队</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.317977,22.507782</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B02F801ZFA</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>鹤湾派出所</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>三乡镇新圩金湾装饰广场展厅A-103号铺即</td>\n",
       "      <td>113.466907,22.325428</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFIUMUV4</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局神湾分局出入境服务大厅</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>神湾镇神湾大道中52号</td>\n",
       "      <td>113.363689,22.305502</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B02F802QKB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局阜沙分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察|政府机构及社会团体;政府机关;乡镇级政府及事业单位</td>\n",
       "      <td>130501|130105</td>\n",
       "      <td>[]</td>\n",
       "      <td>阜沙大道41号</td>\n",
       "      <td>113.347310,22.666989</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B02F801X5K</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>板芙派出所</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>板芙北路29号</td>\n",
       "      <td>113.323011,22.415995</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B02F800S2Z</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局三角分局(高平大道)</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>三角镇高平大道39号</td>\n",
       "      <td>113.467698,22.703408</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFH6NAS5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>西涌派出所</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>西涌顺兴南路6号</td>\n",
       "      <td>113.253025,22.529633</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHLS503 ', 'name': ' 西涌派出所(东南门) '...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFGB61EF</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局板芙分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>板芙北路123号</td>\n",
       "      <td>113.323656,22.415966</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B02F8037UK</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>张家边派出所</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>火炬开发区街道港城路5号</td>\n",
       "      <td>113.463274,22.539652</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHNZJA3 ', 'name': ' 张家边派出所(西南门) ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B02F80247W</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>肖家村派出所</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>沥金路1</td>\n",
       "      <td>113.479784,22.360408</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B02F800S3B</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局坦洲分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>坦洲镇坦神北路113号</td>\n",
       "      <td>113.463628,22.277906</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHLV3R0 ', 'name': ' 中山市公安局坦洲分局(西...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B02F800S31</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局沙溪分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>沙溪镇宝珠中路9号</td>\n",
       "      <td>113.317301,22.507539</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHLQ6ZS ', 'name': ' 中山市公安局沙溪分局(南...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B02F800S1E</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局东升分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>东升镇东港大道5号</td>\n",
       "      <td>113.292946,22.622797</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B02F800S12</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局出入境服务大厅</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>兴中道26号</td>\n",
       "      <td>113.388790,22.509396</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B02F800S0B</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山市公安局三乡分局</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;工商税务机构;工商部门|政府机构及社会团体;公检法机构;公安警察</td>\n",
       "      <td>130701|130501</td>\n",
       "      <td>[]</td>\n",
       "      <td>建设路11</td>\n",
       "      <td>113.436742,22.357629</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHM5Z0D ', 'name': ' 中山市公安局三乡分局(西...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 46 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            id parent childtype               name tag  \\\n",
       "0   B02F8037WL     []        []            临海边防派出所  []   \n",
       "1   B02F80081Z     []        []         中山市公安局西区分局  []   \n",
       "2   B02F80Q6I3     []        []         中山市公安局森林分局  []   \n",
       "3   B02F8038R6     []        []   中山市公安局东区分局巡逻警察大队  []   \n",
       "4   B02F80216V     []        []              浪网派出所  []   \n",
       "5   B02F800Q3Y     []        []   中山市公安局沙溪分局巡逻警察大队  []   \n",
       "6   B02F801ZFA     []        []              鹤湾派出所  []   \n",
       "7   B0FFIUMUV4     []        []  中山市公安局神湾分局出入境服务大厅  []   \n",
       "8   B02F802QKB     []        []         中山市公安局阜沙分局  []   \n",
       "9   B02F801X5K     []        []              板芙派出所  []   \n",
       "10  B02F800S2Z     []        []   中山市公安局三角分局(高平大道)  []   \n",
       "11  B0FFH6NAS5     []        []              西涌派出所  []   \n",
       "12  B0FFGB61EF     []        []         中山市公安局板芙分局  []   \n",
       "13  B02F8037UK     []        []             张家边派出所  []   \n",
       "14  B02F80247W     []        []             肖家村派出所  []   \n",
       "15  B02F800S3B     []        []         中山市公安局坦洲分局  []   \n",
       "16  B02F800S31     []        []         中山市公安局沙溪分局  []   \n",
       "17  B02F800S1E     []        []         中山市公安局东升分局  []   \n",
       "18  B02F800S12     []        []      中山市公安局出入境服务大厅  []   \n",
       "19  B02F800S0B     []        []         中山市公安局三乡分局  []   \n",
       "\n",
       "                                              type       typecode biz_type  \\\n",
       "0                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "1                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "2                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "3                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "4                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "5                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "6                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "7                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "8   政府机构及社会团体;公检法机构;公安警察|政府机构及社会团体;政府机关;乡镇级政府及事业单位  130501|130105       []   \n",
       "9                             政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "10                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "11                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "12                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "13                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "14                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "15                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "16                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "17                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "18                            政府机构及社会团体;公检法机构;公安警察         130501       []   \n",
       "19      政府机构及社会团体;工商税务机构;工商部门|政府机构及社会团体;公检法机构;公安警察  130701|130501       []   \n",
       "\n",
       "                  address              location  ... discount_num event  \\\n",
       "0           火炬开发区临海工业园马安村  113.583506,22.571493  ...            0    []   \n",
       "1                西区富华道38号  113.347746,22.521618  ...            0    []   \n",
       "2              中山三路26号22层  113.386951,22.512437  ...            0    []   \n",
       "3               中山五路55号之一  113.414027,22.516327  ...            0    []   \n",
       "4                   人民路2号  113.464455,22.626989  ...            0    []   \n",
       "5                      []  113.317977,22.507782  ...            0    []   \n",
       "6   三乡镇新圩金湾装饰广场展厅A-103号铺即  113.466907,22.325428  ...            0    []   \n",
       "7             神湾镇神湾大道中52号  113.363689,22.305502  ...            0    []   \n",
       "8                 阜沙大道41号  113.347310,22.666989  ...            0    []   \n",
       "9                 板芙北路29号  113.323011,22.415995  ...            0    []   \n",
       "10             三角镇高平大道39号  113.467698,22.703408  ...            0    []   \n",
       "11               西涌顺兴南路6号  113.253025,22.529633  ...            0    []   \n",
       "12               板芙北路123号  113.323656,22.415966  ...            0    []   \n",
       "13           火炬开发区街道港城路5号  113.463274,22.539652  ...            0    []   \n",
       "14                   沥金路1  113.479784,22.360408  ...            0    []   \n",
       "15            坦洲镇坦神北路113号  113.463628,22.277906  ...            0    []   \n",
       "16              沙溪镇宝珠中路9号  113.317301,22.507539  ...            0    []   \n",
       "17              东升镇东港大道5号  113.292946,22.622797  ...            0    []   \n",
       "18                 兴中道26号  113.388790,22.509396  ...            0    []   \n",
       "19                  建设路11  113.436742,22.357629  ...            0    []   \n",
       "\n",
       "                                             children  \\\n",
       "0                                                  []   \n",
       "1   [{'id': ' B0FFHN7BQM ', 'name': ' 中山市公安局西区分局(南...   \n",
       "2                                                  []   \n",
       "3   [{'id': ' B0FFHMX4OI ', 'name': ' 中山市公安局东区分局巡逻...   \n",
       "4                                                  []   \n",
       "5                                                  []   \n",
       "6                                                  []   \n",
       "7                                                  []   \n",
       "8                                                  []   \n",
       "9                                                  []   \n",
       "10                                                 []   \n",
       "11  [{'id': ' B0FFHLS503 ', 'name': ' 西涌派出所(东南门) '...   \n",
       "12                                                 []   \n",
       "13  [{'id': ' B0FFHNZJA3 ', 'name': ' 张家边派出所(西南门) ...   \n",
       "14                                                 []   \n",
       "15  [{'id': ' B0FFHLV3R0 ', 'name': ' 中山市公安局坦洲分局(西...   \n",
       "16  [{'id': ' B0FFHLQ6ZS ', 'name': ' 中山市公安局沙溪分局(南...   \n",
       "17                                                 []   \n",
       "18                                                 []   \n",
       "19  [{'id': ' B0FFHM5Z0D ', 'name': ' 中山市公安局三乡分局(西...   \n",
       "\n",
       "                                               photos indoor_data.cpid  \\\n",
       "0                                                  []               []   \n",
       "1   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "2   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "4   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "5   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "6   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "7                                                  []               []   \n",
       "8   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "9   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "10  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "11  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "12  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "13  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "14  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "15  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "16  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "17  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "18  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "19  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "\n",
       "   indoor_data.floor indoor_data.truefloor indoor_data.cmsid biz_ext.rating  \\\n",
       "0                 []                    []                []            5.0   \n",
       "1                 []                    []                []             []   \n",
       "2                 []                    []                []             []   \n",
       "3                 []                    []                []             []   \n",
       "4                 []                    []                []             []   \n",
       "5                 []                    []                []             []   \n",
       "6                 []                    []                []             []   \n",
       "7                 []                    []                []             []   \n",
       "8                 []                    []                []             []   \n",
       "9                 []                    []                []             []   \n",
       "10                []                    []                []             []   \n",
       "11                []                    []                []             []   \n",
       "12                []                    []                []             []   \n",
       "13                []                    []                []             []   \n",
       "14                []                    []                []             []   \n",
       "15                []                    []                []             []   \n",
       "16                []                    []                []             []   \n",
       "17                []                    []                []             []   \n",
       "18                []                    []                []             []   \n",
       "19                []                    []                []             []   \n",
       "\n",
       "   biz_ext.cost  \n",
       "0            []  \n",
       "1            []  \n",
       "2            []  \n",
       "3            []  \n",
       "4            []  \n",
       "5            []  \n",
       "6            []  \n",
       "7            []  \n",
       "8            []  \n",
       "9            []  \n",
       "10           []  \n",
       "11           []  \n",
       "12           []  \n",
       "13           []  \n",
       "14           []  \n",
       "15           []  \n",
       "16           []  \n",
       "17           []  \n",
       "18           []  \n",
       "19           []  \n",
       "\n",
       "[20 rows x 46 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>sname</th>\n",
       "      <th>location</th>\n",
       "      <th>address</th>\n",
       "      <th>distance</th>\n",
       "      <th>subtype</th>\n",
       "      <th>typecode</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFHLQ6ZS</td>\n",
       "      <td>中山市公安局沙溪分局(南门)</td>\n",
       "      <td>南门</td>\n",
       "      <td>113.317355,22.507476</td>\n",
       "      <td>宝珠中路9号附近</td>\n",
       "      <td>0</td>\n",
       "      <td>门</td>\n",
       "      <td>991400</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             id              name sname              location     address  \\\n",
       "0   B0FFHLQ6ZS    中山市公安局沙溪分局(南门)    南门   113.317355,22.507476   宝珠中路9号附近    \n",
       "\n",
       "  distance subtype  typecode  \n",
       "0       0        门   991400   "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_near_home = pd.json_normalize(near_home[\"pois\"])\n",
    "df_near_home_公安局 = pd.json_normalize(near_home[\"pois\"][16][\"children\"])\n",
    "display(df_near_home,df_near_home_公安局)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 6.2周边搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "def place_around(location,keywords=None,types=None,city=None,redius=None,sortrule=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'keywords':keywords,\n",
    "        'location':location,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'redius':redius,\n",
    "        'sortrule':sortrule,\n",
    "        'offset':offset,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '886',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B0FFL0XLFU',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州手撕鸡专卖店',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '振兴路24号附近',\n",
       "   'location': '113.182577,22.663120',\n",
       "   'tel': [],\n",
       "   'distance': '47',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLKH0VG',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '卤味轩川卤现捞',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '古镇红庙振兴路12号A4卡',\n",
       "   'location': '113.182468,22.663078',\n",
       "   'tel': '18283138212',\n",
       "   'distance': '56',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL92LM1',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '鸿轩阁美容室',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '海洲市场兴红三路18号',\n",
       "   'location': '113.183329,22.663659',\n",
       "   'tel': [],\n",
       "   'distance': '62',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL7KLE6',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '麻朵姑娘',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '振兴路37号附近',\n",
       "   'location': '113.182532,22.664112',\n",
       "   'tel': [],\n",
       "   'distance': '68',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK8Y0KJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '玉缘行',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '兴红三路与迎宾路交叉口东北50米',\n",
       "   'location': '113.183325,22.663881',\n",
       "   'tel': [],\n",
       "   'distance': '72',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK6JM6Q',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '洋洋美颜中心',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇海州新市场兴红3路17号米蓝空对面',\n",
       "   'location': '113.183232,22.663990',\n",
       "   'tel': [],\n",
       "   'distance': '72',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKOOY7N',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '专业祛斑祛痘(海州店)',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '兴红二路与迎宾路交叉口西南50米',\n",
       "   'location': '113.183162,22.664073',\n",
       "   'tel': '17679411291',\n",
       "   'distance': '74',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHNZP80',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '贵妃美发设计',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇镇海洲村兴红二路28号',\n",
       "   'location': '113.183162,22.664073',\n",
       "   'tel': [],\n",
       "   'distance': '74',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK6CSFJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '华德士爽口云吞皇',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '古镇镇海洲村红庙兴红三路15号',\n",
       "   'location': '113.183420,22.663798',\n",
       "   'tel': '13528902950',\n",
       "   'distance': '76',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLLG33F',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '泊妃诗专业护理美容美体',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '兴红三路北段附近',\n",
       "   'location': '113.183132,22.664108',\n",
       "   'tel': [],\n",
       "   'distance': '76',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK8UJE7',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '爱尚美',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '兴红三路与迎宾路交叉口西北50米',\n",
       "   'location': '113.183108,22.664136',\n",
       "   'tel': [],\n",
       "   'distance': '77',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIH019Q',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': 'COCO美妆纹绣生活馆',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇镇海洲市场兴红三路12号',\n",
       "   'location': '113.183487,22.663377',\n",
       "   'tel': [],\n",
       "   'distance': '78',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLOX52D',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中国联通',\n",
       "   'type': '生活服务;电讯营业厅;中国联通营业厅',\n",
       "   'typecode': '070604',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇镇海兴路45号',\n",
       "   'location': '113.183505,22.663722',\n",
       "   'tel': [],\n",
       "   'distance': '81',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFG2ZE03',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '海洲老字号桂林米粉(兴红三路店)',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '兴红三路与迎宾路交叉口东南50米',\n",
       "   'location': '113.183520,22.663698',\n",
       "   'tel': [],\n",
       "   'distance': '82',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL7BC7O',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '阳春石磨肠粉(海洲店)',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '振兴路通明饰品旁',\n",
       "   'location': '113.183388,22.663971',\n",
       "   'tel': '13690443312',\n",
       "   'distance': '83',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFGAOA99',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '贵妃美发设计(烫染连锁店)',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇海州新市场兴红3路8卡19号',\n",
       "   'location': '113.183293,22.664071',\n",
       "   'tel': [],\n",
       "   'distance': '83',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLOWWLK',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '远鸿企业管理',\n",
       "   'type': '生活服务;人才市场;人才市场',\n",
       "   'typecode': '070800',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇镇海洲红庙路三驳桥29号',\n",
       "   'location': '113.182370,22.664191',\n",
       "   'tel': [],\n",
       "   'distance': '83',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL6CJPX',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '瑞倪维儿国际美容美体连锁机构',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇常兴路5号大明商城',\n",
       "   'location': '113.182386,22.664204',\n",
       "   'tel': [],\n",
       "   'distance': '83',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIC84MI',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '时尚美发设计',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '古镇镇海州市场兴红三路20号',\n",
       "   'location': '113.183387,22.663988',\n",
       "   'tel': [],\n",
       "   'distance': '84',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJCSZZR',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '荣记甜品(旗舰店)',\n",
       "   'type': '餐饮服务;甜品店;甜品店',\n",
       "   'typecode': '050900',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '海州村红庙三驳桥29号第12卡荣记甜品',\n",
       "   'location': '113.182403,22.664216',\n",
       "   'tel': '13420091519',\n",
       "   'distance': '84',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []}]}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "家_周边POI = place_around(家_location)\n",
    "家_周边POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>tel</th>\n",
       "      <th>distance</th>\n",
       "      <th>biz_ext</th>\n",
       "      <th>importance</th>\n",
       "      <th>shopid</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>photos</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFL0XLFU</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州手撕鸡专卖店</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>振兴路24号附近</td>\n",
       "      <td>113.182577,22.663120</td>\n",
       "      <td>[]</td>\n",
       "      <td>47</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFLKH0VG</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>卤味轩川卤现捞</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>古镇红庙振兴路12号A4卡</td>\n",
       "      <td>113.182468,22.663078</td>\n",
       "      <td>18283138212</td>\n",
       "      <td>56</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFL92LM1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>鸿轩阁美容室</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>海洲市场兴红三路18号</td>\n",
       "      <td>113.183329,22.663659</td>\n",
       "      <td>[]</td>\n",
       "      <td>62</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFL7KLE6</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>麻朵姑娘</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>振兴路37号附近</td>\n",
       "      <td>113.182532,22.664112</td>\n",
       "      <td>[]</td>\n",
       "      <td>68</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFK8Y0KJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>玉缘行</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>兴红三路与迎宾路交叉口东北50米</td>\n",
       "      <td>113.183325,22.663881</td>\n",
       "      <td>[]</td>\n",
       "      <td>72</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFK6JM6Q</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>洋洋美颜中心</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇海州新市场兴红3路17号米蓝空对面</td>\n",
       "      <td>113.183232,22.663990</td>\n",
       "      <td>[]</td>\n",
       "      <td>72</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFKOOY7N</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>专业祛斑祛痘(海州店)</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>兴红二路与迎宾路交叉口西南50米</td>\n",
       "      <td>113.183162,22.664073</td>\n",
       "      <td>17679411291</td>\n",
       "      <td>74</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFHNZP80</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>贵妃美发设计</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇镇海洲村兴红二路28号</td>\n",
       "      <td>113.183162,22.664073</td>\n",
       "      <td>[]</td>\n",
       "      <td>74</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFK6CSFJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>华德士爽口云吞皇</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>古镇镇海洲村红庙兴红三路15号</td>\n",
       "      <td>113.183420,22.663798</td>\n",
       "      <td>13528902950</td>\n",
       "      <td>76</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFLLG33F</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>泊妃诗专业护理美容美体</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>兴红三路北段附近</td>\n",
       "      <td>113.183132,22.664108</td>\n",
       "      <td>[]</td>\n",
       "      <td>76</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFK8UJE7</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>爱尚美</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>兴红三路与迎宾路交叉口西北50米</td>\n",
       "      <td>113.183108,22.664136</td>\n",
       "      <td>[]</td>\n",
       "      <td>77</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFIH019Q</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>COCO美妆纹绣生活馆</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇镇海洲市场兴红三路12号</td>\n",
       "      <td>113.183487,22.663377</td>\n",
       "      <td>[]</td>\n",
       "      <td>78</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFLOX52D</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中国联通</td>\n",
       "      <td>生活服务;电讯营业厅;中国联通营业厅</td>\n",
       "      <td>070604</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇镇海兴路45号</td>\n",
       "      <td>113.183505,22.663722</td>\n",
       "      <td>[]</td>\n",
       "      <td>81</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFG2ZE03</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>海洲老字号桂林米粉(兴红三路店)</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>050118</td>\n",
       "      <td>diner</td>\n",
       "      <td>兴红三路与迎宾路交叉口东南50米</td>\n",
       "      <td>113.183520,22.663698</td>\n",
       "      <td>[]</td>\n",
       "      <td>82</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFL7BC7O</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>阳春石磨肠粉(海洲店)</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>振兴路通明饰品旁</td>\n",
       "      <td>113.183388,22.663971</td>\n",
       "      <td>13690443312</td>\n",
       "      <td>83</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFGAOA99</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>贵妃美发设计(烫染连锁店)</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇海州新市场兴红3路8卡19号</td>\n",
       "      <td>113.183293,22.664071</td>\n",
       "      <td>[]</td>\n",
       "      <td>83</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFLOWWLK</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>远鸿企业管理</td>\n",
       "      <td>生活服务;人才市场;人才市场</td>\n",
       "      <td>070800</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇镇海洲红庙路三驳桥29号</td>\n",
       "      <td>113.182370,22.664191</td>\n",
       "      <td>[]</td>\n",
       "      <td>83</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFL6CJPX</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>瑞倪维儿国际美容美体连锁机构</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇常兴路5号大明商城</td>\n",
       "      <td>113.182386,22.664204</td>\n",
       "      <td>[]</td>\n",
       "      <td>83</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFIC84MI</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>时尚美发设计</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>古镇镇海州市场兴红三路20号</td>\n",
       "      <td>113.183387,22.663988</td>\n",
       "      <td>[]</td>\n",
       "      <td>84</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFJCSZZR</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>荣记甜品(旗舰店)</td>\n",
       "      <td>餐饮服务;甜品店;甜品店</td>\n",
       "      <td>050900</td>\n",
       "      <td>diner</td>\n",
       "      <td>海州村红庙三驳桥29号第12卡荣记甜品</td>\n",
       "      <td>113.182403,22.664216</td>\n",
       "      <td>13420091519</td>\n",
       "      <td>84</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id parent childtype              name                type  \\\n",
       "0   B0FFL0XLFU     []        []          广州手撕鸡专卖店        餐饮服务;快餐厅;快餐厅   \n",
       "1   B0FFLKH0VG     []        []           卤味轩川卤现捞    餐饮服务;餐饮相关场所;餐饮相关   \n",
       "2   B0FFL92LM1     []        []            鸿轩阁美容室    生活服务;美容美发店;美容美发店   \n",
       "3   B0FFL7KLE6     []        []              麻朵姑娘    餐饮服务;餐饮相关场所;餐饮相关   \n",
       "4   B0FFK8Y0KJ     []        []               玉缘行  生活服务;生活服务场所;生活服务场所   \n",
       "5   B0FFK6JM6Q     []        []            洋洋美颜中心    生活服务;美容美发店;美容美发店   \n",
       "6   B0FFKOOY7N     []        []       专业祛斑祛痘(海州店)  生活服务;生活服务场所;生活服务场所   \n",
       "7   B0FFHNZP80     []        []            贵妃美发设计    生活服务;美容美发店;美容美发店   \n",
       "8   B0FFK6CSFJ     []        []          华德士爽口云吞皇        餐饮服务;快餐厅;快餐厅   \n",
       "9   B0FFLLG33F     []        []       泊妃诗专业护理美容美体    生活服务;美容美发店;美容美发店   \n",
       "10  B0FFK8UJE7     []        []               爱尚美    生活服务;美容美发店;美容美发店   \n",
       "11  B0FFIH019Q     []        []       COCO美妆纹绣生活馆  生活服务;生活服务场所;生活服务场所   \n",
       "12  B0FFLOX52D     []        []              中国联通  生活服务;电讯营业厅;中国联通营业厅   \n",
       "13  B0FFG2ZE03     []        []  海洲老字号桂林米粉(兴红三路店)  餐饮服务;中餐厅;特色/地方风味餐厅   \n",
       "14  B0FFL7BC7O     []        []       阳春石磨肠粉(海洲店)        餐饮服务;快餐厅;快餐厅   \n",
       "15  B0FFGAOA99     []        []     贵妃美发设计(烫染连锁店)    生活服务;美容美发店;美容美发店   \n",
       "16  B0FFLOWWLK     []        []            远鸿企业管理      生活服务;人才市场;人才市场   \n",
       "17  B0FFL6CJPX     []        []    瑞倪维儿国际美容美体连锁机构    生活服务;美容美发店;美容美发店   \n",
       "18  B0FFIC84MI     []        []            时尚美发设计    生活服务;美容美发店;美容美发店   \n",
       "19  B0FFJCSZZR     []        []         荣记甜品(旗舰店)        餐饮服务;甜品店;甜品店   \n",
       "\n",
       "   typecode biz_type              address              location          tel  \\\n",
       "0    050300    diner             振兴路24号附近  113.182577,22.663120           []   \n",
       "1    050000    diner        古镇红庙振兴路12号A4卡  113.182468,22.663078  18283138212   \n",
       "2    071100       []          海洲市场兴红三路18号  113.183329,22.663659           []   \n",
       "3    050000    diner             振兴路37号附近  113.182532,22.664112           []   \n",
       "4    070000       []     兴红三路与迎宾路交叉口东北50米  113.183325,22.663881           []   \n",
       "5    071100       []  古镇海州新市场兴红3路17号米蓝空对面  113.183232,22.663990           []   \n",
       "6    070000       []     兴红二路与迎宾路交叉口西南50米  113.183162,22.664073  17679411291   \n",
       "7    071100       []        古镇镇海洲村兴红二路28号  113.183162,22.664073           []   \n",
       "8    050300    diner      古镇镇海洲村红庙兴红三路15号  113.183420,22.663798  13528902950   \n",
       "9    071100       []             兴红三路北段附近  113.183132,22.664108           []   \n",
       "10   071100       []     兴红三路与迎宾路交叉口西北50米  113.183108,22.664136           []   \n",
       "11   070000       []       古镇镇海洲市场兴红三路12号  113.183487,22.663377           []   \n",
       "12   070604       []            古镇镇海兴路45号  113.183505,22.663722           []   \n",
       "13   050118    diner     兴红三路与迎宾路交叉口东南50米  113.183520,22.663698           []   \n",
       "14   050300    diner             振兴路通明饰品旁  113.183388,22.663971  13690443312   \n",
       "15   071100       []     古镇海州新市场兴红3路8卡19号  113.183293,22.664071           []   \n",
       "16   070800       []       古镇镇海洲红庙路三驳桥29号  113.182370,22.664191           []   \n",
       "17   071100       []          古镇常兴路5号大明商城  113.182386,22.664204           []   \n",
       "18   071100       []       古镇镇海州市场兴红三路20号  113.183387,22.663988           []   \n",
       "19   050900    diner  海州村红庙三驳桥29号第12卡荣记甜品  113.182403,22.664216  13420091519   \n",
       "\n",
       "   distance biz_ext importance shopid shopinfo poiweight photos  \n",
       "0        47      []         []     []        0        []     []  \n",
       "1        56      []         []     []        1        []     []  \n",
       "2        62      []         []     []        0        []     []  \n",
       "3        68      []         []     []        0        []     []  \n",
       "4        72      []         []     []        0        []     []  \n",
       "5        72      []         []     []        0        []     []  \n",
       "6        74      []         []     []        0        []     []  \n",
       "7        74      []         []     []        1        []     []  \n",
       "8        76      []         []     []        0        []     []  \n",
       "9        76      []         []     []        0        []     []  \n",
       "10       77      []         []     []        0        []     []  \n",
       "11       78      []         []     []        0        []     []  \n",
       "12       81      []         []     []        0        []     []  \n",
       "13       82      []         []     []        0        []     []  \n",
       "14       83      []         []     []        0        []     []  \n",
       "15       83      []         []     []        0        []     []  \n",
       "16       83      []         []     []        0        []     []  \n",
       "17       83      []         []     []        0        []     []  \n",
       "18       84      []         []     []        0        []     []  \n",
       "19       84      []         []     []        1        []     []  "
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_家_周边POI = pd.json_normalize(家_周边POI['pois'])\n",
    "df_家_周边POI"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 6.3多边形搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "def more_around(polygon,keywords=None,types=None,offset=None,page=None,extensions='all',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/polygon?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'polygon':polygon,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'offset':offset,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '3',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B000A7BM4H',\n",
       "   'parent': 'B0FFF5UV26',\n",
       "   'childtype': '202',\n",
       "   'name': '肯德基(花家地店)',\n",
       "   'tag': '原味吮指鸡,炸薯条,藜麦蛋挞拿铁沙啦餐T,吮指原味鸡T,香辣鸡腿堡S豆泥餐T,全家桶套餐,金沙咸蛋黄香辣鸡翅,葡式蛋挞T,香草风味冰拿铁,奥堡辣翅荟蔬汤餐,十三鲜小龙虾烤鸡堡T,香辣鸡腿堡STN,葡式蛋挞经典装,藤椒肯大大鸡排,老北京鸡肉卷,新奥尔良烤翅,北海道冰淇淋,超级塔可,牛油果鸡肉超级塔可T,醇香土豆泥T,培根饭团热浆春卷餐,猪柳蛋帕尼S拿铁薯,馋嘴巴香辣鸡翅尖,塔可青年单人餐,塔可双人经典餐',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'typecode': '050301',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '花家地小区1号商业楼',\n",
       "   'location': '116.469251,39.985551',\n",
       "   'tel': '010-84726925;010-84726915',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '110000',\n",
       "   'pname': '北京市',\n",
       "   'citycode': '010',\n",
       "   'cityname': '北京市',\n",
       "   'adcode': '110105',\n",
       "   'adname': '朝阳区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5916738701',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'J50F001020_425283',\n",
       "   'entr_location': '116.469414,39.985729',\n",
       "   'business_area': '望京',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-22 11:23:43',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.0', 'cost': '41.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b25c00effc1bf79109a818e4b6112a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5adc19aa58cf8ba9245e7cb826d95ab3'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9b03f346956b43ce667a3978ea6d4045'}]},\n",
       "  {'id': 'B0FFKEPXS2',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '肯德基(望京西店)',\n",
       "   'tag': '香辣鸡腿堡ST,劲爆鸡米花,新奥尔良烤鸡腿堡ST,波纹霸王薯条,超级外送全家桶ST,葡式蛋挞经典装,培根鸡腿重磅肉霸堡,劲脆鸡腿堡ST,咸蛋黄流心可颂,皮蛋瘦肉粥,吮指原味鸡,香辣鸡翅,六味小吃桶,香辣黄金鸡柳,黄金鸡块装,新奥尔良烤翅,原味圣代,猫山王榴莲花筒,九龙金玉醇香乌龙奶茶,重磅肉霸堡双人餐,精选炸鸡啤酒超级桶,重磅双层鸡排堡,新堡堡蜘蛛侠双人餐,新堡堡双人餐,芝士厚菇素尊堡',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'typecode': '050301',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '望京西园4区410号综合楼1层',\n",
       "   'location': '116.474027,39.997731',\n",
       "   'tel': '17810627435',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '110000',\n",
       "   'pname': '北京市',\n",
       "   'citycode': '010',\n",
       "   'cityname': '北京市',\n",
       "   'adcode': '110105',\n",
       "   'adname': '朝阳区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '5916739722',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': '望京',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-22 06:07:48',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.0', 'cost': '41.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b25c00effc1bf79109a818e4b6112a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/80025d84d06dcd5f469447b38884cb36'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/19052eb9143e5a21b9abe93d033ed9c5'}]},\n",
       "  {'id': 'B000A7FVJQ',\n",
       "   'parent': 'B0FFG4VQTD',\n",
       "   'childtype': '202',\n",
       "   'name': '肯德基(中福百货店)',\n",
       "   'tag': '香辣鸡腿堡,新奥尔良烤翅,皮蛋瘦肉粥,牛油果热辣藤椒鸡超级塔可,蛋挞,金沙咸蛋黄香辣鸡翅,五味小食拼盘,薯条,醇香土豆泥,大鸡腿饭,冰淇淋,中薯,豆浆,香辣翅,油条,嫩牛五方,炸鸡,拿铁,红豆酒酿,脏脏大虾鸡腿堡,巧克力圣代冰淇凌,老北京鸡肉卷,肯德基避风塘大虾鸡腿双层堡,玉米汁,薯饼',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'typecode': '050301',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '望京南湖东园201号楼1层',\n",
       "   'location': '116.463373,40.000423',\n",
       "   'tel': '010-64753306;4008823823;010-64753305',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '110000',\n",
       "   'pname': '北京市',\n",
       "   'citycode': '010',\n",
       "   'cityname': '北京市',\n",
       "   'adcode': '110105',\n",
       "   'adname': '朝阳区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '6016030700',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'J50F001020_223840',\n",
       "   'entr_location': [],\n",
       "   'business_area': '望京',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-22 05:36:41',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.0', 'cost': '40.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53b25c00effc1bf79109a818e4b6112a'},\n",
       "    {'title': '香辣鸡腿堡',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/aff3c644629ee9e3502589915f471c35'},\n",
       "    {'title': '新奥尔良烤翅',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55fe83c00e1ee57f5030f38dd07fe7ec'}]}]}"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "kfc = more_around('116.460988,40.006919|116.48231,40.007381;116.47516,39.99713|116.472596,39.985227|116.45669,39.984989|116.460988,40.006919','肯德基','050301',\"20\",extensions='all')\n",
    "kfc"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### POI搜索应该需要很大的数据库资料以及稳定的内部系统，毕竟每搜索一个地方，一个关键词，周边的信息都要收纳进来。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 7、静态地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'location':location,\n",
    "        'zoom':zoom,\n",
    "        'size':size,\n",
    "        'scale':scale,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':traffic,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEX7+PT8/f37+/z38O9utt38/f7++f779vNjYmIKWaJfYGP17e0Abcni3tXf4e35+vj4+v39/Pv3/OH9/fv28u7Z1M2TlJb7+PMMgOX7+/j59vD08O+05Yvu7Of93YL4+Pgxj+To5N38/Pnq5t348+yt0fzw7OPZ1Mvs6N708/Xj3tb8/Pq8vr/z7uf49fBxc3Xc18+pl4Hy8vLv7ef29PL5+ffHxsmnqKru6uVvcXPf3+D7+vhbW1rs6uPMtNzh29Hp4e3q593h3NPm49uXk43T1NSkkHXm4tvt5+7t7e3h3NKur7Csra6Ympvg3NGwp5vh3NKGh4ndkBupq6ze3NPSzcbu6uHJycfs39Hw7enq5dzytnrQ0dFtb3GVlpiOj5G/oNPk39fg2tDb0eLCw8T8+/fo4OynpaP29/fj3dQpKSiDhIfn4thJSUr4+PXe29CZjHz5+fno5d76+vrEcAH29vXKby35+PdTrfvw7eb18unk39Xo49rZ2NXz8/Tw7uq6urjd2M328+vh3dPr6ON4i4F9foDv7eTc183o49vl4t708eni3tfs597w7vLq5+H08/Hi3dNOT1Hr6eV5e37z8OmulMf49/Xl4Nfu6+b29vPo5N78+/zi4uL49e3L4Pi92fr6+fiz0/rc3N6w0vzs6vJ1dnjv6uL7+vvY5Pby7fTp7/Xg2tL9/PpsbG749/O2ub339Oy6Z1+ys7T29fL18evf2s/t6eD49/f7+vbl39v7+ffm4tne2M7r6OJiY2bj3tRkecny7ebk4Nb7+/v08u739e7m5eJmaGrg2tDf2dDp5uChoqSqnIzc187z7+j7+fSRlJbp6en7+vm7sqb7+fTu7OjN1N2dnp6ke8v4+Pms0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N83MoyYroddomb1o0SYgPqaUAEA+S5DNw1ad4YBFJg59mG/fsxsgfyptZN5q4/Mz9+fsA69SN7u4KQAnciBoe8JWyi/WFR065vkyUpqFlkYSg01YmPJQ8VZ/zWXEhRV8v1gBCoCKcbZia6tM0T6iL+fcoESEoZpoBCYHZHC6EFMTeENoS4EkjtdfsMsd3k5O/+J68t4nQIzTl9CseAMe487CLHJPW49GwlIcXs55/7+n8hTH7G7/6lGGospgbqTGdcCNKb/K9EdWC+gD0u5XG6llPfAn+DmTByLCUJt+Iph1yGpZFlglcGI1x8qjo1WZ032lQxke+ZzYHrVjd4VyR4rG7K1r+fxyZjN9X1MmzAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x1E5B4FE36C8>"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(location=家_location,zoom=16)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 我觉得静态地图应该会用到计算机视觉与机器学习，让他在给定的范围内，截取想要的地图"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 8、天气查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(city,extensions=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'city':city,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '广东',\n",
       "   'city': '中山市',\n",
       "   'adcode': '442000',\n",
       "   'weather': '阴',\n",
       "   'temperature': '17',\n",
       "   'winddirection': '东南',\n",
       "   'windpower': '≤3',\n",
       "   'humidity': '96',\n",
       "   'reporttime': '2020-04-22 22:22:49'}]}"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "weather(city='442000',extensions=\"base\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 天气查询需要与天气检测相通，且要做到实时，所以机器学习，算法，稳定的系统应该极其重要"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 9、ip定位"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "def ip(ip,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/ip?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'ip':ip,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '广东省',\n",
       " 'city': '广州市',\n",
       " 'adcode': '440100',\n",
       " 'rectangle': '113.1017375,22.93212254;113.6770499,23.3809537'}"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "电脑的ip地址 = ip(ip='210.21.79.245')\n",
    "电脑的ip地址"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### ip定位应该是用到了较多的计算，算法，通过特定方式，将ip地址定位，返回地址"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 10、坐标转换"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [],
   "source": [
    "def adress(locations,coordsys=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'locations':locations,\n",
    "        'coordsys':coordsys,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '116.360421006945,23.541355794271'}"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "揭阳的高德坐标 = adress('116.355736,23.543777','gps')\n",
    "揭阳的高德坐标"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 坐标转换应该需要较强的计算，算法，能够将多种地址（ip、百度坐标......）转换为高德坐标，方便我们实现高德API的其他功能"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 11、批量请求接口"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '888',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKKSDDS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.511528,39.270463',\n",
       "     'distance': '1082',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '李庄子村兰阳草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJM772Z',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.513958,39.270648',\n",
       "     'distance': '1205',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永清镇北辛溜附近',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080503',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C16BMA',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.480285,39.291357',\n",
       "     'distance': '2509',\n",
       "     'tel': '13363650160',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永金一桥东500米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/3e517731940c4684ee94acdfb8c39b26',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/8eb4c3eb92489cb32cafa17205dc0112',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/163f3273c7c60016197a2e7912df53df',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;采摘园',\n",
       "     'shopinfo': '0',\n",
       "     'name': '开心草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLPYFW5',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496816,39.302615',\n",
       "     'distance': '2785',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路225东北100米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'DIY儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080603',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLAIP6H',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496230,39.303248',\n",
       "     'distance': '2865',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'seat_ordering': '0', 'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;影剧院;剧场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '向阳禾理想城梦剧场',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C0IMLS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496593,39.304251',\n",
       "     'distance': '2967',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路179号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/af47a5f4f741f6a3ad170e226f856b92',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '梦想网吧(益昌南路店)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMDQ6D7',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.493187,39.304274',\n",
       "     'distance': '3045',\n",
       "     'tel': '13141201944',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '武隆南路宏益街',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/0fb1662d06ad761b51070fe0ca4c26c5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '1',\n",
       "     'name': '龙圣跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJQZNZW',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497741,39.309459',\n",
       "     'distance': '3519',\n",
       "     'tel': '15210485655',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路268号新旺小区门口',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/67416ad37c69db61c270016fa6f430cc',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/d89fd2e7d4b62cba6187c87cc838bb89',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dbaae4d6ace1004675ce4f252088ffe6',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '熙瑞国际游泳健身会所',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM4EHTE',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.495838,39.309940',\n",
       "     'distance': '3600',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'K9台球',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJKVFLQ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497249,39.310649',\n",
       "     'distance': '3656',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌中路与益昌南路交叉口西南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '网咖',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011128097167158756552628500021560899276',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.125',\n",
       "   'Content-Length': 5294,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}},\n",
       " {'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '878',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFIT4V37',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.509300,39.261324',\n",
       "     'distance': '1935',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '昌丰路与昌盛街交叉口东150米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '利民老年公寓',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM1WN4Q',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.473800,39.284305',\n",
       "     'distance': '2684',\n",
       "     'tel': '13102692203;15032998415',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永丰路与建设大街交叉口北行200米再东行200米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/02f9a9353f15bb7c882c281addaca79a',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/462da2324343c04c255e5b6b55403952',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dfc87db906b2994dae80342d4563b1e9',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '唐山兵途枪战运动',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080301',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFF2T193',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471098,39.281979',\n",
       "     'distance': '2861',\n",
       "     'tel': '0315-8037777',\n",
       "     'biz_ext': {'rating': '4.3', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街与永丰路交叉口西南角',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/c8fd0a18befbe849ce8df7908d88ed24',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/468baaf5453e6c1b38d0c4c417183b40',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/a0a5fff0b63e60b3508c2ecb197d07e5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;夜总会',\n",
       "     'shopinfo': '0',\n",
       "     'name': '一代佳人夜总会',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKPS8TZ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471344,39.273170',\n",
       "     'distance': '2864',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街与永丰路交叉口南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '新少年跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080402',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013B031EO',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.469256,39.278622',\n",
       "     'distance': '2989',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '曙光街23号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;度假疗养场所;疗养院',\n",
       "     'shopinfo': '0',\n",
       "     'name': '光荣院(曙光街)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFHF91Y9',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.467429,39.273141',\n",
       "     'distance': '3196',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街8号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '曹妃甸区老干部活动中心',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLDK6TP',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466867,39.281969',\n",
       "     'distance': '3222',\n",
       "     'tel': '17736580504',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街红赫世家东底商58号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/b59e23956de23e47401416a6b4808c0c',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '0',\n",
       "     'name': '泽仁跆拳道',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFH9MB8R',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.527757,39.301926',\n",
       "     'distance': '3343',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '杨柏线北50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '陶乐宝儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080304',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLOR4DN',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466494,39.287701',\n",
       "     'distance': '3395',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '青年城二期东底商24号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/29997dd7b0c66b1dc6f15a253918ccf2',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/098df33a76f03e8d55672683f63da5d8',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;酒吧',\n",
       "     'shopinfo': '1',\n",
       "     'name': 'ELK酒吧',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMB6BAG',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.528670,39.302678',\n",
       "     'distance': '3457',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': '下午时光台球俱乐部',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011128097167158756552628500021560899276',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.119',\n",
       "   'Content-Length': 5564,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}}]"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "parameters={\n",
    "        \"key\":\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "}\n",
    "body={\n",
    "    \"ops\": [\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=f01e5675ced7f03e2a139d402e372ad8&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        },\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=f01e5675ced7f03e2a139d402e372ad8&location=118.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        }\n",
    "    ]\n",
    "}\n",
    "response = requests.get(\"https://restapi.amap.com/v3/batch?\",params=parameters,json=body)\n",
    "data = response.json()\n",
    "data"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 批量请求接口这个功能其实还没弄懂具体的含义以及用途，求解答"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 12、输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [],
   "source": [
    "def input_q(keywords,types,location=None,city=None,citylimit=None,datatype=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params = {\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'location':location,\n",
    "        'city':city,\n",
    "        'citylimit':False,\n",
    "        'datatype':datatype,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '肯德基',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B0FFIQXJ8F',\n",
       "   'name': '肯德基(古镇海洲店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.181179,22.660620',\n",
       "   'address': '古镇镇中兴大道北1号海都广场一楼',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFFTAWEI',\n",
       "   'name': '肯德基(大信店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.205812,22.639229',\n",
       "   'address': '新兴大道东古镇.大信新都汇1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B02F80366U',\n",
       "   'name': '肯德基(东兴店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.182454,22.614771',\n",
       "   'address': '古镇镇东兴中路2号汇盈大厦1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B02F800X7G',\n",
       "   'name': '肯德基(古镇店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.188907,22.612361',\n",
       "   'address': '古镇镇中兴大道国贸广场1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFH1BOXL',\n",
       "   'name': '肯德基甜品站(古镇餐厅店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.188883,22.612316',\n",
       "   'address': '中兴大道13号国贸广场首层区',\n",
       "   'typecode': '050300',\n",
       "   'city': []},\n",
       "  {'id': 'B02F802EDA',\n",
       "   'name': '肯德基(顺昌广场店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.244876,22.669610',\n",
       "   'address': '新华中路顺昌购物广场1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B02F80P2V1',\n",
       "   'name': '肯德基(小榄大信店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.247468,22.670564',\n",
       "   'address': '小榄镇升平中路大信新都汇首层(近品尚咖啡生活馆)',\n",
       "   'typecode': '050301|050700',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF4P9J3',\n",
       "   'name': '肯德基(黄圃店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.336736,22.711524',\n",
       "   'address': '黄圃镇兴圃大道西33号明悦豪庭1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B02F80P841',\n",
       "   'name': '肯德基(星宝店)',\n",
       "   'district': '广东省中山市',\n",
       "   'adcode': '442000',\n",
       "   'location': '113.327213,22.525616',\n",
       "   'address': '沙溪镇星宝明珠一期2区地铺105卡-即',\n",
       "   'typecode': '050301',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "家附近的kfc = input_q('肯德基','050301','113.18274,22.6635239',city='中山',datatype='all')\n",
    "家附近的kfc"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 输入提示应该会用到较强的推荐算法，通常用在我们在一些应用中搜索“附近”时出现"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 13、交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "def transport(rectangle,level,extensions=\"base\",sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/rectangle?parameters'\n",
    "    params={\n",
    "        'key':\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "        'rectangle':rectangle,\n",
    "        'level':level,\n",
    "        'extensions':extensions,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '北三环路：双向畅通。',\n",
       "  'evaluation': {'expedite': '100.00%',\n",
       "   'congested': '0.00%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '1',\n",
       "   'description': '整体畅通'}}}"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "transport('116.351147,39.966309;116.357134,39.968727',level=5,extensions=\"base\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 交通态势应该会用到较多的算法、机器学习，能够在输入地址后，返回实时的交通现状，应该还要依赖于卫星系统"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 14、创建地理围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [],
   "source": [
    "def create(name=\"测试围栏名称\",center=\"115.672126,38.817129\",radius=\"1000\",valid_time=\"2020-05-19\",desc=\"测试围栏描述\"):\n",
    "    parameters={\n",
    "        \"key\":\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "    }\n",
    "    body={\n",
    "       \"name\": name,\n",
    "       \"center\": center,\n",
    "       \"radius\": \"1000\",\n",
    "       \"enable\": \"true\",\n",
    "       \"valid_time\": \"2020-05-19\",\n",
    "       \"repeat\": \"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",\n",
    "       \"time\": \"00:00,11:59;13:00,20:59\",\n",
    "       \"desc\": \"测试围栏描述\",\n",
    "       \"alert_condition\": \"enter;leave\"\n",
    "    }\n",
    "    response = requests.get(\"https://restapi.amap.com/v4/geofence/meta\",params=parameters,json=body)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'page_no': 1, 'page_size': 20, 'rs_list': [], 'total_record': 0},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "create(name=\"测试围栏名称2\",center=geocode(家))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'page_no': 1, 'page_size': 20, 'rs_list': [], 'total_record': 0},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "parameters={\n",
    "        \"key\":\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "    }\n",
    "body={\n",
    "    \"name\": \"测试围栏名称\",}\n",
    "      # \"center\": center,\n",
    "      # \"radius\": \"1000\",\n",
    "      # \"enable\": \"true\",\n",
    "      # \"valid_time\": \"2020-05-19\",\n",
    "      # \"repeat\": \"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",\n",
    "      # \"time\": \"00:00,11:59;13:00,20:59\",\n",
    "      # \"desc\": \"测试围栏描述\",\n",
    "      # \"alert_condition\": \"enter;leave\"\n",
    "response = requests.get(\"https://restapi.amap.com/v4/geofence/meta\",params=parameters,json=body)\n",
    "data = response.json()\n",
    "data"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 地理围栏可以在一些特定的应用上划定区域，限制行为，例如共享单车的还车区域。应该用到了计算机视觉、推荐算法"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 15、轨迹纠缠"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [],
   "source": [
    "def guiji():\n",
    "    parameters = {\n",
    "        \"key\":\"f01e5675ced7f03e2a139d402e372ad8\",\n",
    "    }\n",
    "    body =[\n",
    "        {\n",
    "            \"x\":116.449429,\n",
    "            \"y\":40.014844,\n",
    "            \"sp\":4,\n",
    "            \"ag\":110,\n",
    "            \"tm\":1478831753\n",
    "        },\n",
    "        {\n",
    "            \"x\":116.449639,\n",
    "            \"y\":40.014776,\n",
    "            \"sp\":3,\n",
    "            \"ag\":110,\n",
    "            \"tm\":23\n",
    "        },\n",
    "        {\n",
    "            \"x\":116.449859,\n",
    "            \"y\":40.014716,\n",
    "            \"sp\":3,\n",
    "            \"ag\":111,\n",
    "            \"tm\":23\n",
    "        },\n",
    "        {\n",
    "            \"x\":116.450074,\n",
    "            \"y\":40.014658,\n",
    "            \"sp\":3,\n",
    "            \"ag\":110,\n",
    "            \"tm\":31\n",
    "        },\n",
    "        {\n",
    "            \"x\":116.450273,\n",
    "            \"y\":40.014598,\n",
    "            \"sp\":3,\n",
    "            \"ag\":111,\n",
    "            \"tm\":20\n",
    "        },\n",
    "    ]\n",
    "    response = requests.get(\"https://restapi.amap.com/v4/grasproad/driving\",params=parameters,json=body)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'distance': 33.0,\n",
       "  'points': [{'x': 116.44942000249563, 'y': 40.014843356125866},\n",
       "   {'x': 116.44945705955585, 'y': 40.01453960973057}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "guiji()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 此功能应该会用到大量的算法以及机器学习，帮助用户把轨迹纠偏到路上，从而返回用户实际驾车经过的道路坐标"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 设计应用"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* 该应用可用于警方打击非法组织上。在很多的非法组织内，警方都会派遣卧底打入地方内部，收集犯罪证据，然而很多卧底的败露往往是在向上级汇报的阶段。  \n",
    "* 当卧底向上级汇报敌方的实时位置时，通过在脑海中重复地址，此时产生的脑电波传导到特制的眼镜（或更小的物品），自动转换为坐标，传给上级，并且自动生成路线规划，实时天气，交通态势，方便警方部署。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
